package com.anyfo.system.service;

import java.util.List;

import com.anyfo.system.Account;
import com.anyfo.system.Group;
import com.anyfo.system.User;

/**
 * 用户相关的处理
 * 
 * @author Cubehead
 * 
 */
public interface AccountService {
	void addAccount(Account account);

	void editAccount(Account account);

	void removeAccount(Account account);

	Account findAccount(long id);

	void addGroup(Group group);

	void editGroup(Group group);

	void removeGroup(Group group);

	Group findGroup(long id);

	List<Group> getAllGroups(Account account);

	List<Account> getAllAccounts();

	void addUser(User user);

	void editUser(User user);

	void removeUser(User user);

	User findUser(long id);

	List<User> getAllUser(Account account);

	List<User> getUser(Group group);
}
